package com.entity;

/**
 * @author 羡羡
 */
public class Message {
    public int id;
    public String name;
    public String content;
    public String head;
    public String time;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getHead() {
        return head;
    }

    public void setHead(String head) {
        this.head = head;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public Message() {
    }

    public Message(int id, String name, String content, String head, String time) {
        this.id = id;
        this.name = name;
        this.content = content;
        this.head = head;
        this.time = time;
    }

    public Message(String name, String content, String head, String time) {
        this.name = name;
        this.content = content;
        this.head = head;
        this.time = time;
    }

    @Override
    public String toString() {
        return "Message{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", content='" + content + '\'' +
                ", head='" + head + '\'' +
                ", time='" + time + '\'' +
                '}';
    }
}
